package com.virtualperson.controller;

import com.virtualperson.dto.ImageValidationRequest;
import com.virtualperson.dto.ImageValidationResponse;
import com.virtualperson.service.ImageValidationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/image")
public class ImageValidationController {

    @Autowired
    private ImageValidationService imageValidationService;

    @PostMapping("/validate")
    public ImageValidationResponse validateImage(@RequestBody ImageValidationRequest request) {
        return imageValidationService.validateImage(request.getImageUrl());
    }
} 